home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / byobu.postinst < prev    next >
Text File  |  2009-10-17  |  521b  |  19 lines

  1. #!/bin/sh -e
  2.  
  3. PKG="byobu"
  4.  
  5. # The target of the diversion somehow disappeared which will cause
  6. # the divert removal to fail; we don't want that to happen
  7. [ -e "/usr/bin/screen.real" ] && [ ! -e "/usr/bin/screen" ] && cp -a /usr/bin/screen.real /usr/bin/screen
  8.  
  9. # Notify users that they should reload their profile
  10. DIR="/var/run/screen"
  11. for d in $(ls "$DIR"); do
  12.     touch "$DIR/$d/$PKG.reload-required"
  13.     u=$(echo "$d" | sed "s:^S-::")
  14.     chown $u "$DIR/$d/$PKG.reload-required"
  15.     chmod 700 "$DIR/$d/$PKG.reload-required"
  16. done
  17.  
  18.  
  19.